Skip to content

Conversation

@gsteenkamp89
Copy link
Contributor

closes FE-71

Add Local RPC Token Balance Fetching with API Fallback

This PR implements a dual-source token balance fetching strategy that prioritizes direct RPC calls for more frequent updates, with API fallback for reliability.
If for some reason the API is unable to fetch balances, we can use the local method to ensure we at least fetch balances only for the 2 tokens selected in the UI.

Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
@linear
Copy link

linear bot commented Dec 17, 2025

@vercel
Copy link

vercel bot commented Dec 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
app-frontend-v3 Ready Ready Preview, Comment Dec 18, 2025 10:11am
sepolia-frontend-v3 Ready Ready Preview, Comment Dec 18, 2025 10:11am

0xjorgen
0xjorgen previously approved these changes Dec 18, 2025
) {
return chainIsSvm(chainId)
? getSvmBalance(chainId, account, tokenAddress)
: getBalance(chainId, account, tokenAddress);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be called getEvmBalance?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! 19dd30c

Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
@vercel
Copy link

vercel bot commented Dec 18, 2025

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (* * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants